package com.education.welco.service.impl;

import com.education.common.utils.Convert;
import com.education.welco.mapper.SCatalogResourceSynMapper;
import com.education.welco.mapper.SResClassMapper;
import com.education.welco.pojo.SCatalogResourceSyn;
import com.education.welco.pojo.SResClass;
import com.education.welco.service.ISCatalogResourceSynService;
import com.education.welco.service.ISResClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 备课查看资源 服务层实现
 *
 * @author d
 * @date 2020-05-14
 */
@Service
public class SResClassServiceImpl implements ISResClassService {

    @Autowired
    private SResClassMapper resClassMapper;

    @Override
    public int insertSCatalogResourceSyn(SResClass resClass) {
        return resClassMapper.insertSCatalogResourceSyn(resClass);
    }

    @Override
    public int deleteSCatalogResourceSynById(Integer id) {
        return resClassMapper.deleteSCatalogResourceSynById(id);
    }

    @Override
    public int deleteSCatalogResourceSynByCatalogIdAndType(SResClass resClass) {
        return resClassMapper.deleteSCatalogResourceSynByCatalogIdAndType(resClass);
    }
}